package storage

import "student_api/internal/types"

// Storage 存储接口定义
type Storage interface {
	// CreateStudent 创建学生记录：接收姓名、邮箱、年龄，返回学生ID和错误信息
	CreateStudent(name string, email string, age int) (int64, error)
	GetStudentById(id int64) (types.Student, error)
	GetStudents() ([]types.Student, error)
}
